<?php

namespace App\B2BProject\Admin;

use App\B2BProject\Admin\Authority\Rbac\AdminTrait;
use App\B2BProject\Site\ArticleAuthorTrait;
use Illuminate\Database\Eloquent\Model;

class Administrator extends Model implements AdministratorInterface
{
    use AdminTrait, ArticleAuthorTrait;

    protected $fillable = ['user', 'email', 'password'];

    protected $hidden = ['password'];

    public function getIdentifier()
    {
        return $this->attributes['id'];
    }

    public function getAuthPassword()
    {
        return $this->attributes['password'];
    }
}
